-- GENERATED SPELL FOR [Darkmender's Ghoul] --


function spell0_29517(pUnit, Event) --@Birth Cast,Self--
pUnit:FullCastSpellOnTarget(26062,pUnit)
pUnit:RegisterEvent('Sorts_29517', 653, 1)
end

function Sorts_29517(pUnit, Event)
local choix_sorts_29517 = math.random(0, 0)
if choix_sorts_29517 == 0 then
pUnit:RegisterEvent('spell0_29517', 1, 1)
end
end

function mob29517_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29517', math.random(1500, 3000), 1)
end

function mob29517_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29517_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29517_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29517, 1, 'mob29517_Action')
RegisterUnitEvent(29517, 2, 'mob29517_Leave')
RegisterUnitEvent(29517, 3, 'mob29517_Kill')
RegisterUnitEvent(29517, 4, 'mob29517_Die')
